<%--
  Created by IntelliJ IDEA.
  User: LikZ
  Date: 2021.8.31
  Time: 上午 9:08
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>网页头部</title>
    <style>
        #header{
            background: #333333;
        }
    </style>
</head>
<body id="header">
<div style="float: right;background-color:snow ;margin-top: 10px;margin-bottom: 10px">
    <c:if test="${empty admin}">
        <a href="#">登录</a>
        <a href="#">个人中心</a>
    </c:if>
    <c:if test="${not empty admin}">
        欢迎,${admin.adminname}登录
        <a href="${pageContext.request.contextPath}/admin/admin_login.jsp" target="admin_login" style="color: black">[退出]</a>
    </c:if>
</div>

</body>
</html>
